﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="Web.Control.WWW.translate.import" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
				<div class="submenu3"></div>
			<div id="body_left"></div>
			<div id="body_main">
				<div class="title"><h1>Import</h1><div class="copyright"><a href="/translate">Translate</a> > Import</div>
				</div>
				<div class="Center9001n">
					<div class="center9001right">
						<div class="Center9001Content">
							<div class="translate_area">
								<input name="chkItem" id="chkItem" type="checkbox" value="1" checked="checked" /><label for="chkItem">Only Item</label>
								<select id="lang" name="lang">
								    <option value="" <%=(SelLang==""?"selected=\"selected\"":"") %>>select</option>
								    <% for (int i = 0; i < LangSets.Count; i++) { %>
										 <option value="<%= ((string[])LangSets[i])[0] %>" <%=((((string[])LangSets[i])[0]==SelLang)?"selected=\"selected\"":"") %>><%=((string[])LangSets[i])[1] %></option>
									<%} %>
								</select>
								<input name="IsBest" id="IsBest" type="checkbox" value="1" /><label for="IsBest">Set Best</label>
							</div>
						  <div class="translate_area">
								<h3>Multi-Item Update</h3>
								<p><textarea name="texta_input" id="texta_input" cols="10" style="height: 300px;width:625px;"></textarea></p>
								<p><input type="button"  class="button" onclick="Check()" value="submit" /></p>
							</div>
						</div>
					</div>
					<div class="center9001left"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<script>
function Check()
{
    if(document.getElementById('texta_input').value=="")
    {
        alert("please input text");
        document.getElementById('texta_input').focus();
        return;
    }
    if(document.getElementById('chkItem').checked)
    {
        document.forms[0].submit();
    }
    else
    {
        if(document.getElementById('lang').selectedIndex<1)
        {
            alert("please select Lang");
            document.getElementById('lang').focus();
            return;
        }
    }
    document.forms[0].submit();
}
</script>